import Vue from 'vue'
import CustomFields from './customFields';

const showCustomFields = (data, config) => {
  const choiceTreeConstructor = Vue.extend(CustomFields);
  const instance = new choiceTreeConstructor({
    el: document.createElement('div')
  });
  document.querySelector("body").appendChild(instance.$el);
  return instance.show(data, config);
}

export default showCustomFields;